package pojo;

import javax.sound.sampled.Line;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;

public class Account {
    private String id;//账号
    private String password;//密码
    private long number;//电话号码
    private String email;//邮箱
    private Information information;//
    private People peopleMessgae;//用户信息
    public Account(){

    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }
    public void setEmail(String email){
        this.email=email;
    }
    public String getEmail(){
        return email;
    }
    public Account(String id,String password){
        this.id=id;
        this.password=password;
    }
    public String toString(){
        return "id ="+id+"\npassword ="+password;
    }

    public void setPeopleMessgae(People people){
        this.peopleMessgae=people;
    }
    public void setInformation(Information information){
        this.information=information;
    }
    public static Map<String,Object> getMapById(Account account){
        Map<String,Object> map=new HashMap<>();
        map.put("id",account.id);
        return map;
    }
}
